package com.ming.mq.controller;

import com.ming.mq.direct.DirectMQSender;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/direct")
public class DirectController {
    @Autowired(required = false)
    private DirectMQSender directMQSender;
    @RequestMapping("/send1")
    public void send1(){
        directMQSender.send1("send1-msg");
    }

    @RequestMapping("/send2")
    public void send2(){
        directMQSender.send2("send2-msg");
    }
}
